<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
  <script type="text/javascript">

    let person = {
    	name: 'zs',
      age: 18,
    };

    let p = new Proxy(person, {
    	set(target, p, value, receiver) {
    		console.log(`${p}被修改了, 我要去更新页面了`);
    		Reflect.set(target, p, value);
			}
		})

  </script>
</body>
</html>
